home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_mp_windsector.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  75 lines

  1. # Jones 3D Cog Script
  2. #
  3. # mp_WindSector.cog
  4. #
  5. #
  6. # "Master" cog, written for slave mp_ThrustSlave.cog. This cog moves 
  7. # a thing (or multiple things) to frame when a thing (button) is activated,
  8. # and sends messages to associated cogs.  slaveA gets turned on at startup, 
  9. # and turned off at arrived, while slaves B and C just get turned on at arrived.
  10. #
  11. # (PAZ)
  12. #
  13. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  14. # ========================================================================================
  15.  
  16. symbols
  17.         message         startup
  18.         message         activated
  19.         message         arrived
  20.                
  21.         thing           button
  22.         thing           floor
  23.         thing           thing_X
  24.         thing           thing_Y
  25.         
  26.         cog             slaveA
  27.         cog             slaveB
  28.         cog             slaveC
  29.  
  30.         float           speed=3.0
  31.                       
  32. end
  33.  
  34. #========================================================================
  35.  
  36. code
  37.  
  38. startup:
  39.         SendMessage(slaveA, user0);
  40.         
  41. return;
  42.  
  43. #........................................................................
  44.  
  45.  
  46. activated:
  47.         if (GetSenderRef() == button)             
  48.         
  49.                 {
  50.                 MoveToFrame(floor, 1, speed);     
  51.                 MoveToFrame(thing_X, 1, speed);
  52.                 MoveToFrame(thing_Y, 1, speed);               
  53.                 }
  54.                 
  55.         return;
  56.         
  57. #........................................................................
  58.  
  59. arrived:                                           
  60.         SendMessage(slaveA, user1);               
  61.         SendMessage(slaveB, user0);             
  62.         SendMessage(slaveC, user0);
  63.         
  64. return;
  65.         
  66. end
  67.                         
  68.                       
  69.         
  70.  
  71.  
  72.  
  73.  
  74.